﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Collections;
using SteriaMummert.SharePoint.SoftwareFactoryLite.Editors;
using System.Drawing.Design;
using Microsoft.Practices.ComponentModel;
using EnvDTE;

namespace SMC.SPALM.Types
{
    [ServiceDependency(typeof(DTE))]
    [Browsable(true)]
    [TypeConverter(typeof(ExpandableObjectConverter)), CategoryAttribute("Migration Settings")]
    public class STSADMExtensionParameter
    {
        private string _Name = "ParameterName";
        private string _Description = "ParameterDescription";
        private Type _Type = typeof(System.String);
        private bool _Required = false;

        public STSADMExtensionParameter()
        {
        }

		[Category("TestProperties")] 
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
		public string Name
		{
			get{return _Name;}
			set{_Name= value;}
		}

        [Category("TestProperties")] 
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

		[Category("TestProperties")]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        [Browsable(true)]
        public Type Type
		{
            get { return _Type; }
            set { _Type = value; }
		}

        [Category("TestProperties")]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        public bool Required
        {
            get { return _Required; }
            set { _Required = value; }
        }
    }
}
